#!/usr/bin/env python

import wx
import resources.toolbars as rTool
from .._toolBarToolBase import ToolBarToolBase

class ToolBar(wx.ToolBar):
    '''ToolBar class
    
    @author Julot <andy.julot@gmail.com>
    @since Thursday, February 02, 2012. 11:00 PM'''
    
    def __init__(self, parent):
        style = wx.TB_HORIZONTAL | wx.TB_FLAT
        super(ToolBar, self).__init__(parent, style=style)
        self.SetToolBitmapSize((16, 16))
        
        tool = ToolBarToolBase
        
        self.start = tool(self, rTool.Control.Bitmap,
                           'Start', 'Start')
        
        self.stop = tool(self, rTool.ControlStopSquare.Bitmap, 'Stop', 'Stop')
        self.stop.disable()
        
        self.AddSeparator()
        
        self.setting = tool(self, rTool.Gear.Bitmap, 'Setting',
                            'Setting')